<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="zh">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>网站收藏列表</title>
	<c:set value="${pageContext.request.contextPath}" var="path" scope="page" />
	<link rel="stylesheet" href="${path}/static/css/list.css">
</head>

<body>
	<div id="main">
		<h1>
			<span class="blue">网站</span>
			<span class="yellow">收藏</span>
		</h1>

		<table class="container">
			<thead>
				<tr>
					<th>
						<h1>编号</h1>
					</th>
					<th>
						<h1>标题</h1>
					</th>
					<th>
						<h1>类别</h1>
					</th>
					<th>
						<h1>网址</h1>
					</th>
					<th>
						<a href="/URLCollection/add" class="btn">添加收藏</a>
						<a href="/URLCollection/logout" class="btn">退出登录</a>
					</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list}" var="item">
					<tr>
						<td>${item.s_id}</td>
						<td>${item.s_title}</td>
						<td>${item.s_cgy}</td>
						<td>${item.s_link}</td>
						<td>
							<a href="/URLCollection/change?s_id=${item.s_id}" class="btn">修改</a>
							<a href="/URLCollection/del?s_id=${item.s_id}" class="btn">删除</a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>

		<h2><a href="https://gitee.com/is666a" target="_blank">小朋友</a>制作</h2>

	</div>
</body>

</html>